package cn.wolfcode.ssm.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;

@Setter
@Getter
public class SystemDictionaryItem {
    private Long id;

    private Long parentId;//字典目录id

    private String title;//字典明细标题

    private Integer sequence;//字典明细顺序

    public String getJson(){
        HashMap map = new HashMap();
        map.put("id",id);
        map.put("parentId",parentId);
        map.put("title",title);
        map.put("sequence",sequence);
        //不能直接传this进去,会出现死循环
        return JSON.toJSONString(map);
    }
}